<%@ page language="java" import="java.util.*,com.hrm.houfei.po.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> 
<jsp:include page="../../userInfoSms.do?operator=userHomePage" flush="false"></jsp:include>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	//System.out.println(basePath);
    //XML图表数据
    /*
	StringBuffer sb=new StringBuffer();
	sb.append("<?xml version='1.0' encoding='UTF-8'?>");
	sb.append("<chart caption='用户综合报表' xAxisName='月份' yAxisName='短信量' showValues='0' baseFont='宋体'  baseFontSize='13' baseFontColor='000000'  formatNumberScale='0' showBorder='0'>");
	sb.append("<set label='一月' value='462' />");
	sb.append("<set label='二月' value='857' />");
	sb.append("<set label='三月' value='671' />");
	sb.append("<set label='四月' value='494' />");
	sb.append("<set label='五月' value='761' />");
	sb.append("<set label='六月' value='960' />");
	sb.append("<set label='七月' value='629' />");
	sb.append("<set label='八月' value='622' />");
	sb.append("<set label='九月' value='376' />");
	sb.append("<set label='十月' value='494' />");
	sb.append("<set label='十一月' value='761' />");
	sb.append("<set label='十二月' value='960' />");
	sb.append("</chart>");
	String chartData=sb.toString(); 
	*/

	String chartData = request.getAttribute("userHomePageStr").toString();
	String chartId="myFirst";
	String chartSWF=path+"/flash/Column3D.swf";
	String chartURL="";
	double chartWidth=700;
	double chartHeight=450;
	boolean debugModeInt=false;
	boolean regWithJSInt=false;
%>
	<script type="text/javascript">
	    var chart_<%=chartId%> = new FusionCharts(
	      "<%=chartSWF %>", "<%=chartId%>", 
	      "<%=chartWidth %>", "<%= chartHeight%>", 
	      "<%= debugModeInt%>", "<%= regWithJSInt%>");
		<%	  
		  if (chartData==null || chartData.equals("")) {
		%>
		  chart_<%=chartId%>.setDataURL("<%= chartURL%>");
		<%} else {%>
		  chart_<%= chartId%>.setDataXML("<%=chartData%>");
		<%}%>
		chart_<%=chartId%>.render("<%=chartId%>Div");
	</script>
	<div id='<%=chartId%>Div' style="">Chart.</div>
	